package com.liuguang.consumer.service.feign;

import com.liuguang.common.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ClassName: ProviderService
 * @Description：
 * @Author: wanghr
 * Date: 4:21 PM 2020/8/5
 * Version: 1.0
 */
@FeignClient("provider")
@RequestMapping("/provider")
public interface ProviderService {
    @RequestMapping("/test1")
    String test1();

    @RequestMapping(value = "/test2")
    String test2(@RequestParam("string") String s);

    @RequestMapping("/test3")
    User test3(@RequestBody User user);

    @RequestMapping("/test4")
    String test4();
}

